﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace DataModels
{
    public class GameExiter : Microsoft.Xna.Framework.GameComponent
    {

        private static GameExiter me;

        private GameExiter(Game game)
            : base(game)
        {

        }

        public static void setExiter(Game game)
        {
            me = new GameExiter(game);
        }

        public static GameExiter getExiter()
        {
            return me;
        }

        public void ExitGame()
        {
            Game.Exit();
        }

    }
}
